{% extends "base.html" %}

{% block title %}{{ term.name }}{% endblock title %}

{% block content %}
<section class="taxonomy-single">
  <header>
    <h1>{{ term.name }}</h1>
    {% if term.description %}
    <p>{{ term.description }}</p>
    {% endif %}
  </header>

  {% if term.pages | length > 0 %}
  <ul class="post-list">
    {% for page in term.pages %}
    <li>
      <a href="{{ page.permalink }}">{{ page.title }}</a>
      <time datetime="{{ page.date | date(format="yyyy-MM-dd") }}">{{ page.date }}</time>
      {% if page.summary %}
      <p>{{ page.summary }}</p>
      {% endif %}
    </li>
    {% endfor %}
  </ul>
  {% else %}
  <p>No content available for this term.</p>
  {% endif %}
</section>
{% endblock %}
